package jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

public class JdbcDemo4
{
    public static void main(String[] args) throws Exception
    {
        Class.forName("com.mysql.cj.jdbc.Driver");
        String url  =  "jdbc:mysql://localhost:3340/tedu?useSSL=false&serverTimezone=UTC";
        String user = "root";
        String passWord = "wl249020...";
        Connection connection = DriverManager.getConnection(url, user, passWord);
        Statement statement = connection.createStatement();
        String sql = "delete from userinfo where id = 1";
        int i = statement.executeUpdate(sql);
        System.out.println(i);
    }
}
